﻿using System;
using System.Collections.Generic;
using System.ComponentModel;
using System.Data;
using System.Drawing;
using System.Linq;
using System.Text;
using System.Windows.Forms;

namespace Cars
{
    public partial class EditCarFilter : Form
    {
        List<CarFilter> _data;

        public EditCarFilter()
        {
            InitializeComponent();
        }

        public List<CarFilter> Data 
        {
            get
            {
                return _data;
            }
            set
            {
                _data = value;
                BindingSource binder = new BindingSource();
                binder.DataSource = _data;
                dataGridView1.DataSource = binder;
            }
        }
    }
}
